package main;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-03-11
 * Time: 12:29
 */
public class Dog extends Animal {

    public Dog(String color, int age) {
        super(color,age);
    }

    @Override
    public void eat(String name) {
        System.out.println(name);
    }

    public void lookhome(){
        System.out.println("看家");
    }
}
